<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/EntryMaster.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div id="rightColumnEntry">       
        <div id="rightBottomEntry">
            <div id="rightInsideEntry">
            <asp:Panel ID="pnlOuter" runat="server" CssClass="pnlOuterStyle" Width="622px" >
                <TABLE cellpadding="0" cellspacing="0" >
                  <TBODY>
                  <TR style="width:750px">
                    <TH align=left >&nbsp;</TH></TR>
                  <TR style="width:750px">
                    <TH align=left ><SPAN 
      id=lblCommon class="PnlEntryHeaders" ><img id="imgEntry" src="App_Themes/ReportThemes/images/expand.gif" onclick="doToggleEntry();" /> Coverage Source Selection</SPAN> 
                        <br />
                      </TH></TR></TBODY></TABLE>
                <asp:Panel ID="pnlCoverageOptions" runat="server" CssClass="PnlEntryStyle" >
                    <table id="tblOptions" runat="server" class="PnlEntryData" >
                        <tr>
                            <td style="width: 300px">
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="lblSelection" runat="server" Text="Select Coverage report source"></asp:Label>  
                            </td>
                            <td align="left" style="width: 300px">
                                <asp:DropDownList ID="drpCovSource" runat="server" CssClass="PnlEntryControlsDrop" 
                                    AutoPostBack="True" onselectedindexchanged="drpCovSource_SelectedIndexChanged">                                    
                                </asp:DropDownList> 
                            </td>
                        </tr>
                        
                        
                    </table> 
                </asp:Panel> 
                <br />
                <TABLE cellpadding="0" cellspacing="0" >
                  <TBODY>
                  <TR style="width:750px">
                    <TH align=left ><SPAN 
      id=SPAN1 class="PnlEntryHeaders"><img id="imgInstrument" src="App_Themes/ReportThemes/images/expand.gif" onclick="doToggleInstrument();" /> Server-side Coverage Execution</SPAN> 
                        <br />
                      </TH></TR></TBODY></TABLE>
                 <asp:Panel ID="pnlCovExen" runat="server" CssClass="PnlCovExenStyle" >
                    <table id="tblCovExn" runat="server" class="PnlEntryData" >
                        <tr>
                            <td style="width: 300px">
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="lblTestContainer" Text="Test Container" runat="server"></asp:Label>  
                                &nbsp;<asp:RequiredFieldValidator ID="rqdTestContainer" runat="server" 
                                    ControlToValidate="txtTestContainer" Display="Dynamic" 
                                    ErrorMessage="Test container is required">*</asp:RequiredFieldValidator>
                                &nbsp;<%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                                    runat="server" ControlToValidate="txtTestContainer" Display="Dynamic" 
                                    ErrorMessage="Test container path is wrong" 
                                    ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ]*))+\.(dll|DLL)$">*</asp:RegularExpressionValidator>--%>
                            </td>
                            <td style="width: 300px">
                                <asp:TextBox ID="txtTestContainer" runat="server" CssClass="PnlEntryControls"></asp:TextBox>
                                &nbsp;<img onclick="openwindow('Provide valid test assembly path ending with DLL extension')  " 
                                    src="App_Themes/ReportThemes/images/help.gif" /></td>
                        </tr>
                        
                        
                        <tr>
                            <td style="width: 300px">
                                &nbsp;&nbsp;&nbsp;&nbsp; Run Config
                                <asp:RequiredFieldValidator ID="rqdRunConfig" runat="server" 
                                    ControlToValidate="txtRunConfig" Display="Dynamic" 
                                    ErrorMessage="Run config is required">*</asp:RequiredFieldValidator>
                                &nbsp;<%--<asp:RegularExpressionValidator ID="RegularExpressionValidator2" 
                                    runat="server" ControlToValidate="txtRunConfig" Display="Dynamic" 
                                    ErrorMessage="Run config path is wrong" 
                                    ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ]*))+\.(testrunconfig|TESTRUNCONFIG)$">*</asp:RegularExpressionValidator>--%>
                            </td>
                            <td style="width: 300px">
                                <asp:TextBox ID="txtRunConfig" runat="server" CssClass="PnlEntryControls"></asp:TextBox>
                                &nbsp;<img 
                                    onclick="openwindow('Provide valid path ending with TESTRUNCONFIG extension')  " 
                                    src="App_Themes/ReportThemes/images/help.gif" /></td>
                        </tr>
                        <tr>
                            <td style="width: 300px">
                                &nbsp;&nbsp;&nbsp;&nbsp; Result File
                                <asp:RequiredFieldValidator ID="rqdResultFile" runat="server" 
                                    ControlToValidate="txtResultsFile" ErrorMessage="Result file is required">*</asp:RequiredFieldValidator>
                                &nbsp;<%--<asp:RegularExpressionValidator ID="RegularExpressionValidator3" 
                                    runat="server" ControlToValidate="txtResultsFile" Display="Dynamic" 
                                    ErrorMessage="Result file path is wrong" 
                                    ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ]*))+\.(trx|TRX)$">*</asp:RegularExpressionValidator>--%>
                            </td>
                            <td style="width: 300px">
                                <asp:TextBox ID="txtResultsFile" runat="server" CssClass="PnlEntryControls"></asp:TextBox>
                                &nbsp;<img 
                                    onclick="openwindow('Provide valid path ending with TRX extension')" 
                                    src="App_Themes/ReportThemes/images/help.gif" /></td>
                        </tr>
                        
                        
                        <tr>
                            <td style="width: 300px">
                                &nbsp;&nbsp;&nbsp;&nbsp; User Defined Scheme&nbsp;<asp:RequiredFieldValidator 
                                    ID="rqdConfName" runat="server" 
                                    ControlToValidate="txtConfigName" ErrorMessage="User defined scheme is required" 
                                    Display="Dynamic">*</asp:RequiredFieldValidator>
                            </td>
                            <td style="width: 300px">
                                <asp:TextBox ID="txtConfigName" runat="server" CssClass="PnlEntryControls"></asp:TextBox>
                                &nbsp;<img 
                                    onclick="openwindow('Provide the same scheme name configured in your testrunconfig file')" 
                                    src="App_Themes/ReportThemes/images/help.gif" /></td>
                        </tr>
                        <tr>
                            <td style="width: 300px">
                                &nbsp;&nbsp;&nbsp;&nbsp; File Extraction Path
                                <asp:RequiredFieldValidator ID="rqdFleExtPath" runat="server" 
                                    ControlToValidate="txtFileExtractionPath" Display="Dynamic" 
                                    ErrorMessage="File Extraction Path  is required">*</asp:RequiredFieldValidator>
                                &nbsp;<%--<asp:RegularExpressionValidator ID="RegularExpressionValidator4" 
                                    runat="server" ControlToValidate="txtFileExtractionPath" Display="Dynamic" 
                                    ErrorMessage="File Extraction Path is wrong" 
                                    ValidationExpression="^(([a-zA-Z]\:)|(\\))(\\{1}|((\\{1})[^\\]([^/:*?&lt;&gt;&quot;&quot;|]*))+)$">*</asp:RegularExpressionValidator>--%>
                            </td>
                            <td style="width: 300px">
                                <asp:TextBox ID="txtFileExtractionPath" runat="server" 
                                    CssClass="PnlEntryControls"></asp:TextBox>
                                &nbsp;<img 
                                    onclick="openwindow('Provide a valid path for placing MSBuild operation results')  " 
                                    src="App_Themes/ReportThemes/images/help.gif" /></td>
                        </tr>
                        <tr>
                            <td style="width: 300px; height: 10px;">
                                &nbsp;</td>
                            <td style="width: 300px; height: 10px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 300px">
                                <asp:ValidationSummary ID="vldSummary0" runat="server" Height="32px" 
                                    ShowMessageBox="True" ShowSummary="False" />
                            </td>
                            <td align="right" style="width: 300px">
                                <asp:Button ID="Button1" runat="server" Height="20px" Text="Submit" 
                                    CssClass="btn" onclick="Button1_Click"/>
                                <asp:Button ID="Button2" runat="server" Height="20px" Text="Cancel" 
                                    CssClass="btn" CausesValidation="False" onclick="Button2_Click" />
                            </td>
                        </tr>
                        
                        
                    </table> 
                </asp:Panel> 
              </asp:Panel>   
            </div>
        </div>
    </div>
    
    <%--CollapsiblePanelExtender controls section START --%>

    <cc1:collapsiblepanelextender ID="clpexEntry" runat="server" 
         TargetControlID="pnlCoverageOptions" Collapsed="true" >
    </cc1:collapsiblepanelextender>
    
     <cc1:collapsiblepanelextender ID="clpexInstrument" runat="server" 
         TargetControlID="pnlCovExen" Collapsed="true" >
    </cc1:collapsiblepanelextender>
    
    <%--CollapsiblePanelExtender controls section END --%>
</asp:Content>

